package com.itheima.day08;
/*
案例6:截取字符串
substring
 */
import java.util.Scanner;

public class TestClassCase06 {

    public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);
        System.out.println("请输入电话号码:");
        String s=sc.nextLine();

        //截取字符串
        String s1=s.substring(0,3);   //[)

        String s2= s.substring(7);

        System.out.println(s1+"****"+s2);
    }
}
